package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("dianyingxinxi")
public class Dianyingxinxi implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String dianyingbianhao;

    private String dianyingmingcheng;

    private Integer fenlei;

    private String dianyingleixing;

    private Double yingpiaojiage;

    private String dianyinghaibao;

    private String shangyingdiqu;

    private String daoyan;

    private String zhuyan;

    private String yuyan;

    private String nianfen;

    private String pianchang;

    private String shifoushangjia;

    private Double pingfen;

    private Integer xiaoshoupiaoshu;

    private String tianjiaren;

    private String dianyingxiangqing;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getPaipianCount() {
        return DB.name("paipian").where("dianyingxinxiid", id).count();
    }

    public Long getDianyingpingjiaCount() {
        return DB.name("dianyingpingjia").where("dianyingxinxiid", id).count();
    }

    public String getDianyingbianhao() {
        return dianyingbianhao;
    }

    public void setDianyingbianhao(String dianyingbianhao) {
        this.dianyingbianhao = dianyingbianhao == null ? "" : dianyingbianhao.trim();
    }

    public String getDianyingmingcheng() {
        return dianyingmingcheng;
    }

    public void setDianyingmingcheng(String dianyingmingcheng) {
        this.dianyingmingcheng = dianyingmingcheng == null ? "" : dianyingmingcheng.trim();
    }

    public Integer getFenlei() {
        return fenlei;
    }

    public void setFenlei(Integer fenlei) {
        this.fenlei = fenlei == null ? 0 : fenlei;
    }

    public String getDianyingleixing() {
        return dianyingleixing;
    }

    public void setDianyingleixing(String dianyingleixing) {
        this.dianyingleixing = dianyingleixing == null ? "" : dianyingleixing.trim();
    }

    public Double getYingpiaojiage() {
        return yingpiaojiage;
    }

    public void setYingpiaojiage(Double yingpiaojiage) {
        this.yingpiaojiage = yingpiaojiage == null ? 0.0f : yingpiaojiage;
    }

    public String getDianyinghaibao() {
        return dianyinghaibao;
    }

    public void setDianyinghaibao(String dianyinghaibao) {
        this.dianyinghaibao = dianyinghaibao == null ? "" : dianyinghaibao.trim();
    }

    public String getShangyingdiqu() {
        return shangyingdiqu;
    }

    public void setShangyingdiqu(String shangyingdiqu) {
        this.shangyingdiqu = shangyingdiqu == null ? "" : shangyingdiqu.trim();
    }

    public String getDaoyan() {
        return daoyan;
    }

    public void setDaoyan(String daoyan) {
        this.daoyan = daoyan == null ? "" : daoyan.trim();
    }

    public String getZhuyan() {
        return zhuyan;
    }

    public void setZhuyan(String zhuyan) {
        this.zhuyan = zhuyan == null ? "" : zhuyan.trim();
    }

    public String getYuyan() {
        return yuyan;
    }

    public void setYuyan(String yuyan) {
        this.yuyan = yuyan == null ? "" : yuyan.trim();
    }

    public String getNianfen() {
        return nianfen;
    }

    public void setNianfen(String nianfen) {
        this.nianfen = nianfen == null ? "" : nianfen.trim();
    }

    public String getPianchang() {
        return pianchang;
    }

    public void setPianchang(String pianchang) {
        this.pianchang = pianchang == null ? "" : pianchang.trim();
    }

    public String getShifoushangjia() {
        return shifoushangjia;
    }

    public void setShifoushangjia(String shifoushangjia) {
        this.shifoushangjia = shifoushangjia == null ? "" : shifoushangjia.trim();
    }

    public Double getPingfen() {
        return pingfen;
    }

    public void setPingfen(Double pingfen) {
        this.pingfen = pingfen == null ? 0.0f : pingfen;
    }

    public Integer getXiaoshoupiaoshu() {
        return xiaoshoupiaoshu;
    }

    public void setXiaoshoupiaoshu(Integer xiaoshoupiaoshu) {
        this.xiaoshoupiaoshu = xiaoshoupiaoshu == null ? 0 : xiaoshoupiaoshu;
    }

    public String getTianjiaren() {
        return tianjiaren;
    }

    public void setTianjiaren(String tianjiaren) {
        this.tianjiaren = tianjiaren == null ? "" : tianjiaren.trim();
    }

    public String getDianyingxiangqing() {
        return dianyingxiangqing;
    }

    public void setDianyingxiangqing(String dianyingxiangqing) {
        this.dianyingxiangqing = dianyingxiangqing == null ? "" : dianyingxiangqing.trim();
    }
}
